import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {
  DataBoard,
  User,
  Goods,
  ShoppingCart,
  Document,
  TrendCharts
} from '@element-plus/icons-vue'

const app = createApp(App)

// 注册需要的图标
app.component('DataBoard', DataBoard)
app.component('User', User)
app.component('Goods', Goods)
app.component('ShoppingCart', ShoppingCart)
app.component('Document', Document)
app.component('TrendCharts', TrendCharts)

app.use(store)
   .use(router)
   .use(ElementPlus)
   .mount('#app') 